<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>
        var num = prompt('输入直角三角形的高度：');
        for (var i = 0; i < num; i++) {
            for (var j = 0; j < num; j++) {
                if (j > i) {
                    continue;
                } else {
                    document.write('七');
                }
            }
            document.write('<br>');
        }
    </script>
</body>

</html>